// src/utils/loadImages.ts
import { globby } from 'globby';

async function loadImages() {
    const files = await globby('app/assets/images/*.{jpg,jpeg,png,gif,webp}');
    const images: Record<string, string> = {};

    for (const file of files) {
        const fileName = file.split('/').pop();
        if (fileName) {
            images[fileName] = file;
        }
    }

    return images;
}

export default loadImages;